<h1><? if(@$data['Holiday']['id']): ?>Edit Holiday<? else: ?>Create Holiday<? endif ?></h1>

<?= $this->Form->create('Holiday', array('action'=>'save')) ?>
	<?= $this->Form->hidden('id', array('value'=>@$data['Holiday']['id'])) ?>

	<p><?= $this->Form->input('name', array(
		'value' => @$data['Holiday']['name'],
		'label' => 'Name:'
	)) ?></p>
	
	<p><?= $this->Form->label('start', 'From:') ?>
	<?= $this->App->datepicker('start', to_date(@$data['Holiday']['start'])) ?>
	<?= $this->Form->label('end', 'To:') ?>
	<?= $this->App->datepicker('end', to_date(@$data['Holiday']['end'])) ?></p>
	
	<p><?= $this->Form->submit('Save', array('div'=>false)) ?>
    <?= $this->Html->link('Cancel', array('action'=>'index')) ?></p>
<?= $this->Form->end() ?>
